﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Activity.Model
{
    public class KMShopInvestigateModel
    {
        public class CreatModel:CoreModel
        {
            /// <summary>
            /// 店铺
            /// </summary>
            public string ShopName { get; set; }

            /// <summary>
            /// 填写人
            /// </summary>
            public string Person { get; set; }

            /// <summary>
            /// 其他因素值
            /// </summary>
            public string Other { get; set; }

            /// <summary>
            /// 竞品品牌
            /// </summary>
            public string Brand { get; set; }

            /// <summary>
            /// 进驻年月
            /// </summary>
            public DateTime? InYear { get; set; }

            /// <summary>
            /// 店数
            /// </summary>
            public int ShopCount { get; set; }

            /// <summary>
            /// 年产
            /// </summary>
            public string YearSaleAmount { get; set; }

            /// <summary>
            /// 面积
            /// </summary>
            public string Area { get; set; }

            /// <summary>
            /// 新增商圈名称
            /// </summary>
            public string AddAreaName { get; set; }

            /// <summary>
            /// 商圈级别
            /// </summary>
            public string AreaLevel { get; set; }

            /// <summary>
            /// 商圈类别
            /// </summary>
            public string AreaCategory { get; set; }

            /// <summary>
            /// 岗位
            /// </summary>
            public string Station { get; set; }

            /// <summary>
            /// 竞品数量
            /// </summary>
            public int GoodsCount { get; set; }

            /// <summary>
            /// 同比
            /// </summary>
            public string YoY { get; set; }
        }

        public class CoreModel
        {
            /// <summary>
            /// 类型
            /// </summary>
            public string FirstType { get; set; }

            /// <summary>
            /// 内部内类型
            /// </summary>
            public string SecondType { get; set; }

            /// <summary>
            /// 因素
            /// </summary>
            public string Element { get; set; }

            /// <summary>
            /// 重要程度
            /// </summary>
            public int Sort { get; set; }
        }

        public class ListModel: NewCoreModel
        {
            public double? Accounted { get; set; }
        }

        public class NewCoreModel
        {
            /// <summary>
            /// 类型
            /// </summary>
            public int FirstType { get; set; }

            /// <summary>
            /// 内部内类型
            /// </summary>
            public int SecondType { get; set; }

            /// <summary>
            /// 因素
            /// </summary>
            public string Element { get; set; }

            /// <summary>
            /// 重要程度
            /// </summary>
            public int Sort { get; set; }
        }

        public class ShowModel: ListModel
        {
            /// <summary>
            /// 类型
            /// </summary>
            public string FirstTypeName { get; set; }

            /// <summary>
            /// 内部内类型
            /// </summary>
            public string SecondTypeName { get; set; }
        }

        public class FinalModel
        {
            IList<IGrouping<int, ShowModel>> sortlist { get; set; }
            IList<IGrouping<string, ShowModel>> namelist { get; set; }
        }
    }
}
